package com.sgb.kjwl.view.ui.adapter.enterprise;

import android.content.Context;
import android.widget.LinearLayout;

import com.sgb.kjwl.BR;
import com.sgb.kjwl.R;
import com.swgk.core.view.entity.MenuEntity;
import com.swgk.core.recyclerview.adapter.BaseRecycleAdapter;
import com.swgk.core.recyclerview.adapter.ItemViewHolder;

import java.util.List;

/**
 * Created by WYJ on 2020/8/26.
 */
@Deprecated
public class EpMenuAdapter extends BaseRecycleAdapter<MenuEntity> {

    public EpMenuAdapter(Context context, List<MenuEntity> datas) {
        super(context, R.layout.item_menu_ep, datas);
    }

    @Override
    public void convert(ItemViewHolder holder, MenuEntity objectMenuEntity) {
        holder.setBinding(BR.viewModel, objectMenuEntity);
        LinearLayout ll = holder.itemView.findViewById(R.id.ll_menu);
//        if (holder.getAdapterPosition() == 3 || holder.getAdapterPosition() == 2) {
//            ll.setVisibility(View.INVISIBLE);
//        }
    }

}
